import http.client
import json

conn = http.client.HTTPSConnection("www.iuseapi.com")
payload = json.dumps({
   # "model": "claude-3-5-sonnet-20240620",
   "model": "claude-sonnet-4-20250514",
   "messages": [
      {
         "role": "user",
         "content": "你是谁？"
      }
   ]
})
headers = {
   'Accept': 'application/json',
   'Authorization': 'Bearer sk-jCftG99y1i26xekWOj6e5eux31KNvxrT6Blt0oqtoG9tn0Sg',
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/chat/completions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))